//
//  PYMediaInfo.h
//  IHome
//
//  Created by Jim on 2019/4/13.
//  Copyright © 2019 com.zhujizheng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>
#import "PYCatalogue.h"

NS_ASSUME_NONNULL_BEGIN

@interface PYMediaInfo : NSObject
/// 类型
@property (nonatomic, assign) PYFileType type;
#pragma mark - PYWebImage
/// 图片url
@property (nonatomic, copy) NSString *imgUrl;
/// 加载图片的选项
@property (nonatomic, assign) YYWebImageOptions options;
/// 图片方向
@property (nonatomic, assign) UIImageOrientation orientation;
#pragma mark - JPVideoPlayer
/// 视频Url
@property (nonatomic, strong) NSURL *videoUrl;
#pragma mark - PHAsset
/// 相片数据
@property (nonatomic, strong) PHAsset *asset;
/// 加载相片控件的tag
@property (nonatomic, assign) NSInteger assetTag;
#pragma mark - 其他
/// 加载图片的大小
@property (nonatomic, assign) CGSize imgSize;
/// 图片的默认显示图
@property (nonatomic, strong) UIImage *placeholderImg;
/// 图片dismiss后停在的ImgView的frame
@property (nonatomic, assign) CGRect imgViewFrame;
/// 图片dismiss后停在的ImgView的layer的cornerRadius
@property (nonatomic, assign) CGFloat imgViewCornerRadius;

+ (instancetype)infoWithImgUrl:(NSString *)imgUrl;
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
@end

NS_ASSUME_NONNULL_END
